<!DOCTYPE html>
<html>
    <head>
        <script src="vue.js"></script>
    </head>
    <body>
        <div id="app">

        </div>
        <script>
            let MyPlugin = {};
            MyPlugin.install = function(Vue,options){
                console.log(options);

                Vue.directive('my-directive',{
                    bind(el,binding){
                        el.style='width:100px;height:100px;background-color:red';
                    }
                });
            }


            Vue.use(MyPlugin,{someOption:true});
            var vm = new Vue({
                el:'#app'
            });
        </script>
    </body>
</html>